<!--
  描述：弹框公共组件HTML
  公司：xxx有限公司
  版权：xxx2020
  作者：oyjl
  时间：2020-04-27 14:14:09
  -->
<div class="main" *ngIf="showDialog && dialog">
  <div class="content">
    <p [ngStyle]="dialog.headStyle">{{headFielResolve(dialog.head)}}</p>
    <p [ngClass]="{'required': dialog.required}" [ngStyle]="dialog.textStyle">{{dialog.text}}</p>
    <textarea [(ngModel)]="reason"></textarea>
    <div class="button-groups">
      <button pButton type="button" label="确定" (click)="saveHandle()" [disabled]='dialog.required && !reason'></button>
      <button pButton type="button" label="取消" (click)="closeDialog()"></button>
    </div>
  </div>
</div>
